<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header');?>
<form name="myform" action="<?php echo U('public_listorder'); ?>" method="post">
<div class="pad_10">
	<div class="table-list">
		<table width="100%" cellspacing="0" >
			<thead>
				<tr>
					<th width="30" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
					<th>排序</th>
					<th>ID</th>
					<th align="left">标题</th>
					<th align='center'>小图地址</th>
					<th align='center'>大图地址</th>
					<th align='center'>操作时间</th>
					<th>管理操作</th>
				</tr>
			</thead>
			<tbody>
			<?php foreach ($infos as $key => $r): ?>
			<tr>
				<td align="center"><input type="checkbox" name="id[]" value="<?php echo $r['id']?>"></td>
				<td align='center'><input type="text" name="listorder[<?php echo $r['id'] ?>]" size="3" value="<?php echo $r['listorder'] ?> " class="input-text-c input-text"></td>
				<td align='center'><?php echo $r['id'] ?></td>
				<td><?php if ($r['url']): ?><a href="<?php echo $r['url'] ?>" rel="nofollow" target="_blank"><?php echo $r['title'] ?></a><?php else: ?><?php echo $r['title'] ?><?php endif ?></td>
				<td><?php echo $r['thumb'] ?></td>             
				<td><?php echo $r['image']?></td>    
				<td align='center'><?php echo date("Y-m-d H:i:s",$r['dateline']);?></td>
				<td align='center'>
					<a href="<?php echo U('edit', array('id' => $r['id'])) ?>">修改</a>
					<a href="<?php echo U('delete', array('id[]' => $r['id'])) ?>">删除</a>
				</td>
			</tr>
			<?php endforeach ?>
			</tbody>
		</table>
		<input type="hidden" name="dosubmit" value="true">
		<div class="btn"><label for="check_box">全选/取消</label>&nbsp;&nbsp;<input type="submit" class="button" value="更新排序">&nbsp;&nbsp;<input type="submit" class="button" value="批量删除" onclick="document.myform.action='<?php echo U('delete') ?>';return confirm('您确定要删除吗？')"></div>
		<div id="pages"><?php echo $pages ?></div>
	</div>
</div>
</div>
</form>
<script type="text/javascript">window.top.$('#display_center_id').css('display','none');</script>
</body>
</html>